package topo.action;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import topo.MainFrame;
import topo.data.NodeDevice;
import topo.dialog.NodeViewDialog;
import topo.utils.DialogTools;

public class NodeViewAction extends AbstractAction {
    public void actionPerformed(ActionEvent e) {
        NodeDevice node = (NodeDevice) getValue("ActionDataKeyName");

        NodeViewDialog dialog = new NodeViewDialog(MainFrame.frame);
        dialog.myInit(node);
        DialogTools.dialogPack(MainFrame.frame, dialog);
    }

    public NodeViewAction() {
        super("设备属性");
    }
}